package backend;

import java.io.File;

public class PathHandler {
	
	private static String localPath;

	public static String GetLocalPath() {
		if (localPath == null) {
			String classPath = PathHandler.class.getProtectionDomain()
					.getCodeSource().getLocation().getPath();
			File location = new File(classPath);
			
			localPath = location.getParent().replace("%20", " ");
			localPath = localPath.replace("\\", "/");
		}
		return localPath;
	}
	public static String HELP = "/help.html";
	public static final String ABOUT = "/about.html";
	public static final String LICENSE = "/license.html";
	public static final String SHORTCUTS_XML = "/Shortcuts.xml";
	public static final String SHORTCUTS_FOLDER = "/Shortcuts/";
	public final static String PROPERTIES = "/config.properties";
}
